package cn.edu.scau.cmi.luochenghao.chapter10;
import java.io.*;
public class Example10_4 {

	public static void main(String agrs[]) {
		int n = -1;
		byte[] a = new byte[100];
		try {
			File f = new File("/Users/luochenghao/git/201725110111_luo_chenghao/201725110111罗铖昊/src/cn/edu/scau/cmi/luochenghao/chapter10/Example10_4.java");
			FileInputStream in = new FileInputStream(f);
			while ((n = in.read(a,0,100)) != -1) {
				String s = new String(a,0,n);
				System.out.println(s);
			}
			in.close();
		}catch (IOException e) {
			System.out.println("File read Error"+e);
		}
	}

}
